# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=qsopt-ex
pkgver=2.5.10.3
pkgrel=1
pkgdesc='Exact linear programming solver'
arch=(loong64 x86_64)
url='https://github.com/jonls/qsopt-ex'
license=(GPL3)
depends=(gmp zlib bzip2)
makedepends=()
source=(https://github.com/jonls/qsopt-ex/releases/download/v$pkgver/qsopt_ex-$pkgver.tar.xz)
sha256sums=('04fb63042c84023f7f7ff8a53b2dfdbaf5a056845a0d72797066db32bb5111bf')

build() {
  cd qsopt_ex-$pkgver
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd qsopt_ex-$pkgver
  make DESTDIR="$pkgdir" install
}
